﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace Campus.Entities
{
    [Table("Turnos")]
    public class Turno
    {    

        public int TurnoId
        {
            get;
            set;
        }

        [Required(ErrorMessage = "El {0} es requerido")]
        public int GrupoId
        {
            get;
            set;
        }

        public virtual Grupo Grupo
        {
            get;
            set;
        }
        public int DiaDeLaSemanaId { get; set; }
        [Required(ErrorMessage = "El {0} es requerido")]
        [DisplayName("Día de la semana")]
        public virtual DiaDeLaSemana DiaDeLaSemana
        {
            get;
            set;
        }

        [DisplayName("Hora de Inicio")]
        [Required(ErrorMessage = "La {0} es requerida")]
        public DateTime HoraInicio
        {
            get;
            set;
        }

        [DisplayName("Hora de Fin")]
        [Required(ErrorMessage = "La {0} es requerida")]
        public DateTime HoraFin
        {
            get;
            set;
        }
    }
}
